package com.zjj.algorithm.learning.atguigu.tree;

/**
 * @author zjj_admin
 * @date 2022/11/27 10:02
 */
public class ThreadedTreeNode extends TreeNode{

    /**
     * 当 leftType == 0 表示表示指向的是左子树，为 1 表示指向前驱结点
     */
    private int leftType;

    /**
     * 当 rightType == 0 表示表示指向的是右子树，为 1 表示指向后继结点
     */
    private int rightType;

    public int getLeftType() {
        return leftType;
    }

    public void setLeftType(int leftType) {
        this.leftType = leftType;
    }

    public int getRightType() {
        return rightType;
    }

    public void setRightType(int rightType) {
        this.rightType = rightType;
    }

    public ThreadedTreeNode(int no) {

        super(no);
    }



//    public void setLeft(ThreadedTreeNode left) {
//        super.setLeft(left);
//    }
}
